package com.duobaoyu.dby.supply.biz.client.resource.bean.bo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName ChannelConfigBO
 * @createTime 12:55:00 2023/09/26
 */
@Data
public class ChannelConfigBO implements Serializable {
	private static final long serialVersionUID = -8060069018221076209L;

	private Long id;

	@ApiModelProperty(value = "渠道编号")
	private String channelCode;


	@ApiModelProperty(value = "渠道名称")
	private String channelName;


	@ApiModelProperty(value = "接口配置参数,json字符串")
	private List<ParamConfig> ifParams;


	@ApiModelProperty(value = "状态 0->停用; 1->正常")
	private Integer status;


	@ApiModelProperty(value = "备注")
	private String remark;

	@ApiModelProperty(value = "版本号-用作乐观锁")
	private Integer version;


	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;


	@ApiModelProperty(value = "修改时间")
	private LocalDateTime updateTime;

	@Data
	public static class ParamConfig {
		/**
		 * 管理后天展示名字
		 */
		private String name;
		/**
		 * 字段描述
		 */
		private String description;
		/**
		 * 字段名称
		 */
		private String field;
		/**
		 * 字段对应的值
		 */
		private String fieldValue;
		/**
		 * 表单类型
		 */
		private String type;
	}
}
